package com.bot.rf.excel;

import com.alibaba.excel.EasyExcel;

import java.util.List;

/**
 * @program: report-form-demo
 * @description: Excel工具类
 * @author: zyy
 * @create: 2021-03-19 09:58
 **/
public class ExcelUtil {

    /**
     * 导入Excel文件
     * @param fileName
     * @return
     */
    public static List<InputExcel> inputExcel(String fileName){
        EasyExcel.read(fileName, InputExcel.class, new InputExcelDataListener()).sheet().doRead();
        return InputExcelDataListener.excels;
    }
}
